package com.example.javaservice.pojo;

import lombok.Data;

import java.sql.Timestamp;

@Data
public class Post {
    private Integer id;
    private Integer userId;
    private String title;
    private String content;
    private String category;
    private String tags;
    private Integer views;
    private String status;
    private Timestamp createTime;
    private Timestamp updateTime;
    // 来自 users 表的附加字段
    private String username;
    private String nickname;
    private String avatar;

}
